package com.tulingxueyuan.order.domain;

import lombok.Data;

/**
 * @description: TODO
 * @Author li
 * @Date 2025/4/24 15:16
 */
@Data
public class Result<T> {
    private int code;
    private String msg;
    private T data;

    public Result(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public static Result error(int code, String msg) {
        return new Result(code, msg);
    }
}
